package com.haoting.blogservice.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author tingting
 * @since 2020-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Blog对象", description="")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String author;

    private String title;

    @TableField(fill = FieldFill.INSERT)
    private String status;

    private String subjectId;

    private String subjectParentId;

    private String cover;

    private Integer commentStatus;

    @TableField(fill = FieldFill.INSERT)
    private Integer commentCount;

    @TableField(fill = FieldFill.INSERT)
    private Integer collectionCount;

    @TableField(fill = FieldFill.INSERT)
    private Integer supportCount;

    @TableField(fill = FieldFill.INSERT)
    private Integer lookCount;

    @TableField(fill = FieldFill.INSERT)
    private Date created;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modified;

    @ApiModelProperty(value = "逻辑删除 1 (true) 已删除，0 (false) 未删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private String isDeleted;


}
